CMAKE_MINIMUM_REQUIRED(VERSION 3.8)
PROJECT(DbServer)

INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})

add_compile_definitions("_ALLOC_BYTEARRAY_MULTI_THREAD_")

AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR} src)
#AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR}/query src)
#AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR}/cache src)
#AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR}/upgrade src)

ADD_EXECUTABLE(${PROJECT_NAME} ${src})

TARGET_LINK_LIBRARIES(${PROJECT_NAME} common)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} core)


TARGET_LINK_LIBRARIES(${PROJECT_NAME} mysqlclient)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} crypto)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} pthread)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} jemalloc)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} curl)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} uuid)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} dl)
